package top.lv666.graduation_design_serve.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.lv666.graduation_design_serve.pojo.User;

import java.util.Map;

@Mapper
@Repository
public interface UserMapper {
    /**
     * @apiNote 查询用户是否存z
     */
    User selectOneUser(Map<String, Object> map);

    /**
     * @apiNote 创建用户
     */
    int createOneUser(Map<String, Object> map);

    /**
     * @apiNote 查询用户是否存在
     */
    int selectUserIsExist(String userName);


}
